package cc.home.work.demo1;

public class Test {
    public static void main(String[] args) {
        new Play(){
            @Override
            public void playGame() {
                System.out.println("玩绝地求生");
            }
        }.playGame();

        Play p = new Play(){
            @Override
            public void playGame() {
                System.out.println("玩地平线4");
            }
        };
        p.playGame();

    }
}
